package com.xiaoxin.errorDemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/filter")
public class FilterController {
    @GetMapping("/test")
    public Map<String, Object> testFilter() {
        Map<String, Object> map = new HashMap<>();
        map.put("key1", "请求成功");
        map.put("key2", new Date());
        return map;
    }
}
